local zhuiji = fk.CreateSkill{
  name = "mini__zhuiji",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable{
  ["mini__zhuiji"] = "追击",
  [":mini__zhuiji"] = "锁定技，你计算与体力值不大于你的角色距离视为1。"..
  "你使用【杀】不能被体力值不小于你的角色响应。",

  ["$mini__zhuiji1"] = "追击",
  ["$mini__zhuiji2"] = "追击",
}

zhuiji:addEffect(fk.CardUsing, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(zhuiji.name) and data.card.trueName == "slash" and
      table.find(data.tos, function (p)
        return p.hp >= player.hp
      end)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    data.disresponsiveList = data.disresponsiveList or {}
    for _, p in ipairs(room.players) do
      if p.hp >= player.hp then
        table.insertIfNeed(data.disresponsiveList, p)
      end
    end
  end,
})

zhuiji:addEffect("distance", {
  fixed_func = function(self, from, to)
    if from:hasSkill(zhuiji.name) and from.hp >= to.hp then
      return 1
    end
  end,
})

return zhuiji
